//
// Created by amir on 21.03.24.
//

#include "Window/window.h"
#include "Event/event.h"
#include "TimeSystem/Time/Time.h"


using namespace std;



int main(){
    if(window::initialization("Doodle Jump C++ Clone", 500, 650)) {
        event::initialization();
        Time::initialization();


        while(!window::isShouldCloseWindow()) {
            // clear
            window::clear({0.3f, 0.3f, 0.3f, 1.f});
            Time::update();


            // swapbuffer
            window::swapBuffers();



            // window::setShouldCloseWindow(true);
            event::pollEvents();
        }


        Time::finallyzation();
        event::finallyzation();
        window::finallyzation();
    }


    return 0;
}